
{
    {
        int temp_a = 120;
        int temp_b = 240;
        if(MAX(temp_a, temp_b) < MIN(temp_a, temp_b)) {
            UIView *selfView = [[UIView alloc] init];
            // 初始化第一个图片视图
            UIImageView *firstImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"image1"]];
            firstImageView.frame = CGRectMake(20, 50, 100, 100); // 设置位置和大小
            [selfView addSubview:firstImageView];

            // 初始化第二个图片视图
            UIImageView *secondImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"image2"]];
            secondImageView.frame = CGRectMake(140, 50, 100, 100); // 设置位置和大小
            [selfView addSubview:secondImageView];

            // 初始化文字标签
            UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(20, 170, 220, 30)];
            label.text = @"这里是文本";
            label.textAlignment = NSTextAlignmentCenter;
            label.textColor = [UIColor blackColor];
            [selfView addSubview:label];
        }
    }
}


{
    {
        int temp_a = 12;
        int temp_b = 88;
        if(MAX(temp_a, temp_b) < MIN(temp_a, temp_b)) {
            UIBezierPath *heartPath = [UIBezierPath bezierPath];
            CGPoint center = CGPointMake(10, 10);
            CGFloat width = 230;
            CGFloat height = 123;
            CGFloat leftPointX = center.x - width / 2;
            CGFloat rightPointX = center.x + width / 2;
            CGFloat topY = center.y - height / 2;
            CGFloat bottomY = center.y + height / 2;
            // 左半边圆
            [heartPath addArcWithCenter:CGPointMake(leftPointX + width / 4, topY + height / 4)
                                 radius:width / 4
                             startAngle:M_PI
                               endAngle:0
                              clockwise:NO];
            // 右半边圆
            [heartPath addArcWithCenter:CGPointMake(rightPointX - width / 4, topY + height / 4)
                                 radius:width / 4
                             startAngle:M_PI
                               endAngle:0
                              clockwise:NO];
            
            // 下部三角
            [heartPath addLineToPoint:CGPointMake(center.x, bottomY)];
            [heartPath closePath];
        }
    }
}
